const { GOODS_LIST,GOODS_DETAIL,GOODS_EDIT,GOODS_NEW } = require('./routerConst')
const goodsRouterHandler = (req,res) => {
    if (req.method === 'get' && req.path === GOODS_LIST) {
        // 处理产品列表
    } else if (req.method === 'get' && req.path === GOODS_DETAIL) {
        // 处理产品详情
    } else if (req.method === 'get' && req.path === GOODS_EDIT) {
        // 处理编辑产品
    } else if (req.method === 'get' && req.path === GOODS_NEW) {
        // 处理新增产品
    }
}
module.exports = goodsRouterHandler